import axios from './axios'


// 获取购物车数据
export function cartIndex(data) {
    return axios({
        url: '/cart/index',
        method: 'get',
        params: data,
    })
}

// 修改商品选中状态
export function changeGoods(data) {
    return axios({
        url: '/cart/checked',
        method: 'post',
        data
    })
}

// 删除购物车数据
export function deleteGoods(data) {
    return axios({
        url: '/cart/delete',
        method: 'post',
        data
    })
}
// 商品步进器

export function addANDsub(data) {
    return axios({
        url: '/cart/update',
        method: 'post',
        data
    })
}
